package com.wang;

import java.util.Scanner;

/**
 * @author qqq
 * @version 1.0
 * @date $(DATE)$(TIME)
 * @description
 */
public class Calculator {
    public String brand;         //属性
    public String size;

    public double add(double num1, double num2) {     //行为
        return num1 + num2;

    }
    public double sub(double num1, double num2) {
        return num1 - num2;
    }
    public void show(){
        System.out.println("计算器品牌是：" + brand + ",尺寸是："+ size);
    }
}
